package com.ly.report_ah.controller;


import com.ly.report_ah.sercive.master.ReportService;
import com.ly.report_ah.sercive.master.TestService;
import com.ly.report_ah.vo.ReportVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

@Controller
@Slf4j
public class ReportTestController {


    @Autowired
    ReportService reportServiceImpl;

    @Autowired
    TestService testService;



    @GetMapping("/test/infotest")
    public String getInfo(  Model model){

        String list = this.testService.test();
        model.addAttribute("message",list);
//        ReportVO reportVO = this.reportServiceImpl.getReportVO(company_id, yearMonth);
//        model.addAttribute("reportVO",reportVO);
        return "/index";
    }



}
